<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>${category.name}</title>
    <meta name="decorator" content="cms_default_${site.theme}"/>
    <meta name="description" content="${category.description}"/>
    <meta name="keywords" content="${category.keywords}"/>
</head>
<body>
<div class="wrapper">
    <div class="current unstyled left">
        <cms:frontCurrentPosition category="${category}"/>
    </div>
</div>

<div class="section">
    <div class="wrapper">
        <div class="row">
           
                    <c:if test="${category.module eq 'article'}">
                        <c:forEach items="${page.list}" var="article">
                         <div class="col3">
   
							<div >
						 		<c:set var="coImageUrl" value="${ctxStatic }/xh/images/co.png"> </c:set>
								 <a href="${article.url}"><img class="img-scale" style="width:200px ;" src="${article.image ? coImageUrl : article.image }" alt=""></a>
							</div>
							<div style="margin-top:20px">
								 <a href="${article.url}">${article.title }</a>
							</div>
						</div>
                        </c:forEach>
                       
                    </c:if>
                    <c:if test="${category.module eq 'link'}">
                        <ul><c:forEach items="${page.list}" var="link">
                            <li><a href="${link.href}" target="_blank" style="color:${link.color}"><c:out
                                    value="${link.title}"/></a></li>
                        </c:forEach></ul>
                    </c:if>
            
        </div>
         <div class="pager unstyled">${page}</div>
                        <script type="text/javascript">
                            function page(n, s) {
                                location = "${ctx}/list-${category.id}${urlSuffix}?pageNo=" + n + "&pageSize=" + s;
                            }
                        </script>
    </div>
</div>
</body>
</html>